package com.example.demo.Demo1;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/Map")
@Controller
public class ResposeController {
    @RequestMapping("/test01")
    public String fun1(){
        return"/index.html";
    }

    @ResponseBody   //这个加上@Controller（在类上）就等于@RestController
    @RequestMapping("/test02")
    public String returnDate(){
        return "返回的为数据";
    }
}
